﻿using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.AspNetCore.Razor.TagHelpers;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Xfm.TagHelpers.Exts;

namespace Xfm.TagHelpers
{
    //TODO 表格
    public class TbTagHelper : TagHelper
    {

        public override void Process(TagHelperContext context, TagHelperOutput output)
        {
            //TagBuilder table = new TagBuilder("table");
            //table.AddCssClass("table");
            output.TagName = "table";
            output.AddClass("table");
            //var test = output.Content;
        }
    }
    public class TrdTagHelper : TagHelper
    {
        public override void Process(TagHelperContext context, TagHelperOutput output)
        {
            output.Content.AppendHtml(new TagBuilder("thead"));
            output.Content.AppendHtml(new TagBuilder("tbody"));
        }
    }
}
